home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-admin / page-new.php < prev    next >
Encoding:
PHP Script  |  2004-11-17  |  756 b   |  30 lines

  1. <?php
  2. require_once('admin.php');
  3. $title = __('New Page');
  4. $parent_file = 'post.php';
  5. require_once('admin-header.php');
  6.  
  7. get_currentuserinfo();
  8. ?>
  9.  
  10. <?php if ( isset($_GET['saved']) ) : ?>
  11. <div class="updated"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> »</a></strong></p></div>
  12. <?php endif; ?>
  13.  
  14. <?php
  15. if ($user_level > 0) {
  16.     $action = 'post';
  17.     get_currentuserinfo();
  18.     //set defaults
  19.     $post_status = 'static';
  20.     $comment_status = get_settings('default_comment_status');
  21.     $ping_status = get_settings('default_ping_status');
  22.     $post_pingback = get_settings('default_pingback_flag');
  23.     $post_parent = 0;
  24.     $page_template = 'default';
  25.  
  26.     include('edit-page-form.php');
  27. }
  28. ?>
  29.  
  30. <?php include('admin-footer.php'); ?>